<template>

<div class="person">
  {{person}}
</div>
</template>

<script lang="ts" setup name="PersonRef">

import {type PersonInter} from '@/types'
//集成PersonInter 类实现接口，指定泛型
let person:PersonInter = { id:1, name:'张三',age:18}

</script>

